API Documentation
ProgramSourcesHolder.h
1 // ProgramSourcesHolder.h
3 //
5 
6 namespace nkGraphics
7 {
11  class DLL_GRAPHICS_EXPORT ProgramSourcesHolder final
12  {
13  public :
14 
23 
27  std::string_view getVertexMemory () const ;
31  std::string_view getHullMemory () const ;
35  std::string_view getDomainMemory () const ;
39  std::string_view getGeometryMemory () const ;
43  std::string_view getPixelMemory () const ;
47  std::string_view getComputeMemory () const ;
51  std::string_view getRaytraceMemory () const ;
56  std::pair<std::string_view, std::string_view> getDefineMacroVertex (unsigned int index) const ;
61  std::pair<std::string_view, std::string_view> getDefineMacroHull (unsigned int index) const ;
66  std::pair<std::string_view, std::string_view> getDefineMacroDomain (unsigned int index) const ;
71  std::pair<std::string_view, std::string_view> getDefineMacroGeometry (unsigned int index) const ;
76  std::pair<std::string_view, std::string_view> getDefineMacroPixel (unsigned int index) const ;
81  std::pair<std::string_view, std::string_view> getDefineMacroCompute (unsigned int index) const ;
86  std::pair<std::string_view, std::string_view> getDefineMacroRaytrace (unsigned int index) const ;
90  std::vector<std::pair<std::string_view, std::string_view>> getDefineMacrosVertex () const ;
94  std::vector<std::pair<std::string_view, std::string_view>> getDefineMacrosHull () const ;
98  std::vector<std::pair<std::string_view, std::string_view>> getDefineMacrosDomain () const ;
102  std::vector<std::pair<std::string_view, std::string_view>> getDefineMacrosGeometry () const ;
106  std::vector<std::pair<std::string_view, std::string_view>> getDefineMacrosPixel () const ;
110  std::vector<std::pair<std::string_view, std::string_view>> getDefineMacrosCompute () const ;
114  std::vector<std::pair<std::string_view, std::string_view>> getDefineMacrosRaytrace () const ;
118  unsigned int getDefineMacroMaxNumber () const ;
122  unsigned int getDefineMacroMaxNumberPipeline () const ;
126  unsigned int getDefineMacroNumberCompute () const ;
130  unsigned int getDefineMacroNumberRaytrace () const ;
131 
135  void setVertexMemory (const std::string_view& str) ;
139  void setHullMemory (const std::string_view& str) ;
143  void setDomainMemory (const std::string_view& str) ;
147  void setGeometryMemory (const std::string_view& str) ;
151  void setPixelMemory (const std::string_view& str) ;
155  void setComputeMemory (const std::string_view& str) ;
159  void setRaytraceMemory (const std::string_view& str) ;
166  void addDefineMacroVertex (const std::string_view& key, const std::string_view& value) ;
173  void addDefineMacroHull (const std::string_view& key, const std::string_view& value) ;
180  void addDefineMacroDomain (const std::string_view& key, const std::string_view& value) ;
187  void addDefineMacroGeometry (const std::string_view& key, const std::string_view& value) ;
194  void addDefineMacroPixel (const std::string_view& key, const std::string_view& value) ;
201  void addDefineMacroCompute (const std::string_view& key, const std::string_view& value) ;
208  void addDefineMacroRaytrace (const std::string_view& key, const std::string_view& value) ;
209 
226  } ;
227 }
nkGraphics::ProgramSourcesHolder::getHullMemory
std::string_view getHullMemory() const
nkGraphics::ProgramSourcesHolder::setVertexMemory
void setVertexMemory(const std::string_view &str)
nkGraphics::ProgramSourcesHolder::getPixelMemory
std::string_view getPixelMemory() const
nkGraphics::ProgramSourcesHolder::getGeometryMemory
std::string_view getGeometryMemory() const
nkGraphics::ProgramSourcesHolder::getDefineMacroGeometry
std::pair< std::string_view, std::string_view > getDefineMacroGeometry(unsigned int index) const
nkGraphics::ProgramSourcesHolder::getDefineMacrosPixel
std::vector< std::pair< std::string_view, std::string_view > > getDefineMacrosPixel() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosDomain
std::vector< std::pair< std::string_view, std::string_view > > getDefineMacrosDomain() const
nkGraphics::ProgramSourcesHolder::setGeometryMemory
void setGeometryMemory(const std::string_view &str)
nkGraphics::ProgramSourcesHolder::getDefineMacroHull
std::pair< std::string_view, std::string_view > getDefineMacroHull(unsigned int index) const
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsPipeline
bool hasMinimalDefinitionsPipeline() const
nkGraphics::ProgramSourcesHolder::addDefineMacroPixel
void addDefineMacroPixel(const std::string_view &key, const std::string_view &value)
nkGraphics::ProgramSourcesHolder::setComputeMemory
void setComputeMemory(const std::string_view &str)
nkGraphics::ProgramSourcesHolder::getVertexMemory
std::string_view getVertexMemory() const
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsGeometry
bool hasMinimalDefinitionsGeometry() const
nkGraphics::ProgramSourcesHolder::addDefineMacroDomain
void addDefineMacroDomain(const std::string_view &key, const std::string_view &value)
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsRaytrace
bool hasMinimalDefinitionsRaytrace() const
nkGraphics::ProgramSourcesHolder::~ProgramSourcesHolder
~ProgramSourcesHolder()
nkGraphics::ProgramSourcesHolder::addDefineMacroCompute
void addDefineMacroCompute(const std::string_view &key, const std::string_view &value)
nkGraphics::ProgramSourcesHolder::getDefineMacroNumberRaytrace
unsigned int getDefineMacroNumberRaytrace() const
nkGraphics::ProgramSourcesHolder::setRaytraceMemory
void setRaytraceMemory(const std::string_view &str)
nkGraphics::ProgramSourcesHolder::addDefineMacroGeometry
void addDefineMacroGeometry(const std::string_view &key, const std::string_view &value)
nkGraphics::ProgramSourcesHolder::setPixelMemory
void setPixelMemory(const std::string_view &str)
nkGraphics::ProgramSourcesHolder::ProgramSourcesHolder
ProgramSourcesHolder()
nkGraphics::ProgramSourcesHolder::getDefineMacroMaxNumberPipeline
unsigned int getDefineMacroMaxNumberPipeline() const
nkGraphics::ProgramSourcesHolder::addDefineMacroHull
void addDefineMacroHull(const std::string_view &key, const std::string_view &value)
nkGraphics::ProgramSourcesHolder::getDefineMacroPixel
std::pair< std::string_view, std::string_view > getDefineMacroPixel(unsigned int index) const
nkGraphics::ProgramSourcesHolder::getDefineMacrosHull
std::vector< std::pair< std::string_view, std::string_view > > getDefineMacrosHull() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosGeometry
std::vector< std::pair< std::string_view, std::string_view > > getDefineMacrosGeometry() const
nkGraphics::ProgramSourcesHolder::getDefineMacroRaytrace
std::pair< std::string_view, std::string_view > getDefineMacroRaytrace(unsigned int index) const
nkGraphics::ProgramSourcesHolder::getDefineMacroCompute
std::pair< std::string_view, std::string_view > getDefineMacroCompute(unsigned int index) const
nkGraphics::ProgramSourcesHolder::getDefineMacroVertex
std::pair< std::string_view, std::string_view > getDefineMacroVertex(unsigned int index) const
nkGraphics::ProgramSourcesHolder::getComputeMemory
std::string_view getComputeMemory() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosRaytrace
std::vector< std::pair< std::string_view, std::string_view > > getDefineMacrosRaytrace() const
nkGraphics::ProgramSourcesHolder::getDefineMacroMaxNumber
unsigned int getDefineMacroMaxNumber() const
nkGraphics::ProgramSourcesHolder
Holds the sources of a program.
Definition: ProgramSourcesHolder.h:12
nkGraphics::ProgramSourcesHolder::setHullMemory
void setHullMemory(const std::string_view &str)
nkGraphics::ProgramSourcesHolder::getDefineMacrosCompute
std::vector< std::pair< std::string_view, std::string_view > > getDefineMacrosCompute() const
nkGraphics::ProgramSourcesHolder::setDomainMemory
void setDomainMemory(const std::string_view &str)
nkGraphics::ProgramSourcesHolder::getDefineMacroDomain
std::pair< std::string_view, std::string_view > getDefineMacroDomain(unsigned int index) const
nkGraphics::ProgramSourcesHolder::getRaytraceMemory
std::string_view getRaytraceMemory() const
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsCompute
bool hasMinimalDefinitionsCompute() const
nkGraphics::ProgramSourcesHolder::getDomainMemory
std::string_view getDomainMemory() const
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ProgramSourcesHolder::getDefineMacroNumberCompute
unsigned int getDefineMacroNumberCompute() const
nkGraphics::ProgramSourcesHolder::addDefineMacroRaytrace
void addDefineMacroRaytrace(const std::string_view &key, const std::string_view &value)
nkGraphics::ProgramSourcesHolder::addDefineMacroVertex
void addDefineMacroVertex(const std::string_view &key, const std::string_view &value)
nkGraphics::ProgramSourcesHolder::getDefineMacrosVertex
std::vector< std::pair< std::string_view, std::string_view > > getDefineMacrosVertex() const